package com.ysh.blog.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface Article {
    @Select("select * from t_article")
    public List<HashMap<Object,Object>>  list();

    @Select("select * from t_article  limit #{id} , #{count}")
    public List<HashMap<Object,Object>>  listPage(Integer id,Integer count);


    @Select("select count(1) from t_article ")
    public int  count();


 }
